package com.liqi;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
@MapperScan(basePackages = {"com.liqi.biz.dao","com.liqi.frame.comm.dao"})
public class BizApplication {

    private static String port;
    @Value("${server.port}")
    public void setPort(String port){
        BizApplication.port = port;
    }
    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors","false");
        SpringApplication.run(BizApplication.class, args);
        log.info("=====================================================\n" +
                " ==                                                 ==\n" +
                " ==                   服 务 已 启 动                 ==\n" +
                " ==               http://127.0.0.1:" + port + "             ==\n" +
                " ==                                                 ==\n" +
                " =====================================================");
    }

}
